<!DOCTYPE htm PUBLIC "-//W3C//DTD Xhtm 1.0 Transitional//EN" "DTD/xhtm1-transitional.dtd"> 
<htm xmlns="http://www.w3.org/1999/xhtm" xml:lang="de" lang="de">
<head>
 <meta http-equiv="content-type" content="text/htm; charset=iso-8859-1" />
 <meta http-equiv="content-style-type" content="text/css" />
 <meta name="author" content="Arlsair" />
 <meta name="date" content="2004-01-22" />
 <title>BorderControl</title>
 <link rel="stylesheet" type="text/css" href="../../style.css" />
</head><body>
<h1>BorderControl</h1>

<h2>&Uuml;bersicht</h2>
<b>Autor:</b> Simon Walters<br />
<b>Version:</b> 1.4<br />
<b>Download:</b> <a href="http://www.geocities.com/siwalters_uk/fnews.html" target="_blank">http://www.geocities.com/siwalters_uk/fnews.html</a><br />
<b>Kategorie:</b> TV Capture<br />
<b>Anforderungen:</b> YV12 oder YUY2 Farbformat<br />
<hr>
<h3><strong>Description</strong></h3>
<p><font face="Comic Sans MS, cursive" size="2"><b>Note:</b>The left and right
parameters get doubled by the filter as I haven't sorted out how to deal
properly with having 1 chroma sample for very 2 luminace ones yet :-(</font></p>
<p><font size="2" face="Comic Sans MS, cursive">It performs the same functions
as the VirtualDub version in that you can set a black border, set a border
region to be faded out and you can &quot;smear&quot; the border to save having
to crop and resize the whole frame for the sake of a few pixels. Each border
(top,bottom.left and right) can be manipulated independantly.<br>
<br>
<b>Syntax</b></font></p>
<p><font size="2" face="Comic Sans MS, cursive">#Example<br>
LoadPlugin(&quot;BorderControl&quot;)<br>
AVISource(&quot;Test.avi&quot;)<br>
BorderControl(YBB=16,YTS=32)<br>
<br>
This would put a solid black border at the bottom and smear some lines at the
top of the picture. The plugins accepts up to 16 parameters, 4 for each border<br>
There are 4 prefixes: YB,YT,XL and XR for bottom,top,left and right borders.</font></p>
<p><font size="2" face="Comic Sans MS, cursive">There are 4 suffixes: B for
Border - this sets the amount of solid border, F for Fade, S for Smear and SF
for SmearFactor.</font></p>
<p><font size="2" face="Comic Sans MS, cursive">Increasing SmearFactor (having
first set the Smear value correctly) can help disguise the smear region at the
expense of increasing the area being processed. I suggest using even values for
YTSF and YBSF when dealing with interlaced material.</font></p>
<p><font size="2" face="Comic Sans MS, cursive">So the parameters are<br>
BorderControl(clip,YBB, YBF, YBS, YBSF, YTB, YTF, YTS, YTSF, XLB, XLF, XLS,
XLSF, XRB, XRF, XRS, XRSF)</font></p>

</body>
</html>

<!---
new version:

INTRODUCTION

AutoCrop is an AVISynth filter that automatically crops the black borders from a clip. It
operates in either preview mode where it overlays the recommended cropping information on
the existing clip, or cropping mode where it really crops the clip. It can also ensure
width and height are multiples of specified numbers so the cropped clip can be passed to
the video compressor of your choice without problems.

The latest version of this filter is available at

http://www.videofringe.com/autocrop

CHANGES

Added ability to set a range of frames to sample for cropping information.

Reduced default number of frames to sample to 5.

Reduced default threshold to 30, this change and the one above should perform give equal
or better performance for DVD sources much quicker.

Minor documentation updates.

This version of AutoCrop is compiled for AviSynth 2.5. It will not work with any of the
2.0 releases. If you need to use AviSynth 2.0 please download version 0.3 of this filter
from
http://www.videofringe.com/autocrop


USAGE

AutoCrop takes 12 parameters but they are all optional so you can just do AutoCrop() to
get a feel for how the filter works. Parameters can either be specified in order or by
name. I suggest specifying by name as there is a lot of parameters!

Parameter order follows.

AutoCrop(mode,wMultOf,hMultOf,leftAdd,rightAdd,topAdd,bottomAdd,threshold,samples,samplest
artframe,sampleendframe,aspect)

SYNTAX

mode - Integer - default 1

0 - Crop - Crops the image
1 - Preview - Suggested cropping information is overlayed on the existing clip, including
a crop command that you can use to replace AutoCrop with.
2 - Log - Logs the cropping parameters to the file "AutoCrop.log" in the current
directory.

wMultOf - Integer - default 4

Ensures that the width of the cropped clip will be a multiple of the number specified. Use
this to ensure that clip is a valid for whatever codec you are going to compress with.

hMultOf - Integer - default 2

As above but for height

leftAdd - Integer - default 0

Forces autocrop to crop and additional 'leftAdd' pixels after it completes auto detection.
You can use this option in conjunction with wMultOf. Useful for cropping out bad quality
lines on the side of VHS captures.

rightAdd - Integer - default 0

See above but for the right.

topAdd - Integer - default 0

Forces autocrop to crop and additional 'topAdd' pixels after it completes auto detection.
You can use this option in conjunction with hMultOf. Useful for cropping out bad quality
lines on the top of VHS captures.

bottomAdd - Integer - default 0

See above but for the bottom.

threshold - Integer (0-255) - default 30

Threshold is the average luminance a line must have before it's considered non blank. For
DVD sources values as low as 20 should work reliably. For VHS sources raising the value
maybe neccessary.

samples - Integer - default 5

The number of frames to examine when determining the cropping information. This directly
affects the startup time of the filter. This number dramatically effects the amount of
time taken for the filter to startup. Increasing the number to 10 will basically double
the startup time.

samplestartframe - Integer - default 0 (first frame)

Sets the first frame to be looked at when determining the cropping parameters.

sampleendframe - Integer - default -1 (last frame)

Sets the last frame to be looked at when determining the cropping parameters. If you want
to take the cropping information from a single frame set samplestartframe and
sampleendframe to the same number and samples to be 1

aspect - Float - default 0 - Aspect is ignored

-1 - Maintain aspect ratio of the source clip
 0 - Aspect is ignored
>0 - Aspect ratio will be set to this. For example for a 4:3 aspect ratio you would pass
4.0/3.0 or 1.33333333333. Note 4/3 won't work the .0 is need to tell AVISynth the value is
a float.

RECOMMENDED USE

I strongly suggest using the preview mode before committing to a particular crop.

SOURCE

Source is included in the distribution.

PLANNED FUTURE ENHANCEMENTS

Blanking Mode


-->
